package edu.must.uh.impl;

import java.util.List;
import java.util.Map;
import edu.must.uh.util.PageHelper;
import edu.must.uh.util.SqlUtils;
import edu.must.uh.util.Tools;
import edu.must.uh.util.ToolsOfString;


public class RegCodeImpl extends BaseImpl {

    public RegCodeImpl() {
         super.cashkey     = "reg_label";
         super.cashListkey = "reg_label";
         super.keyFields   = "ID";
         super.tableName   = "reg_label"; 
    }
  
  

    public  List<Map<String,Object>> getList(Map<String, Object> searchcondition,
        String sqlcondition) throws Exception {        
       
        String sqlString = "SELECT ID,GROUP_CODE_ID,CODE,CREATETIME,DELETEMARK FROM reg_label Where DELETEMARK= 0  ";
        sqlString = sqlString + Tools.getSQLCondition(searchcondition);
        sqlString = sqlString +ToolsOfString.NulltoEmpty(sqlcondition) ;     
        sqlString = sqlString + PageHelper.getLimit(_PageBean);
        List<Map<String,Object>>resList = SqlUtils.getMySqlInstance().getlist(sqlString);
        return resList;
    }
    
    
}
